home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Deleting Frames < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Deleting Frames
  2. Sent:        6/26/96 5:39 PM
  3. Received:    6/26/96 5:51 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >When I want to delete a FW Frame, what's the recommended way to remove it
  9. >from my part?  Do I delete it directly, do I delete its proxy, do I call
  10. >the ODFrame->Remove method, or is there another way?
  11. >
  12.  
  13. It depends if you want the action to be undoable or not. Be very careful 
  14. if you decide to not make the deletion undoable, if the frame you are 
  15. deleting is the result of a data interchange action (paste, drop) the 
  16. deletion must be undoable because the paste or drop is undoable. If you 
  17. delete your frame without undo you won't be able to undo the paste or 
  18. drop.
  19.  
  20. Anyway, to delete a frame without undo call 
  21. FW_MProxy::RemoveEmbeddedFrames and then you can remove the proxy from 
  22. your content model and delete it. To delete a frame with undo call 
  23. FW_MProxy::DetachEmbeddedFrames and later on call 
  24. FW_MProxy::AttachEmbeddedFrames. In this case, if the deletion is not 
  25. undone, the frames will be deleted correctly and your command object will 
  26. be called to get rid of the proxy.
  27.  
  28. All the ODF embedding parts supports removal of embedded frames (with 
  29. undo). We don't have any part supporting removal of embedded frames 
  30. without undo. You need to be very careful and know what you are doing 
  31. before deciding to not support undo.
  32.  
  33. ........................................................................
  34.  Henri Lamiraux                                      lamiraux@apple.com
  35.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  36. ........................................................................
  37.  
  38.